﻿ 

using System.Web.Routing;
using Route = Kaiser.MvcBase.Models.Route;

namespace Kaiser.Extensions
{
    //public static class RouteCollectionExtensions
    //{
    //    public static Route MapRoute(this RouteCollection routes, string name, string url, object defaults, object constraints, string[] namespaces, IRouteUrlModifier routeModifier, string moduleName)
    //    {
    //        if (url.StartsWith("/"))
    //            url = url.Substring(1);
    //        Route route = routes.MapRoute(name, routeModifier.ModifyUrl(url), defaults, constraints, namespaces);
    //        if (!moduleName.IsNullOrWhiteSpace())
    //            route.DataTokens["ModuleName"] = moduleName;
    //        return route;
    //    }
    //}
}
